package com.xujie.sportsmeeting.vo;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 角色视图对象
 */
@Data
public class RoleVO {
    
    private Long id;
    
    private String roleName;
    
    private String roleCode;
    
    private String description;
    
    private Integer status;
    
    private String statusText;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
    
    private List<String> permissions;
    
    private List<Long> permissionIds;
    
    public String getStatusText() {
        if (status == null) return "未知";
        return status == 1 ? "正常" : "禁用";
    }
}
